<%@ page language="java" contentType="text/html; charset=UTF8"
    pageEncoding="UTF8"%><%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%><!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><decorator:title /></title>
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="/res/assets/i/favicon.png">
  <link rel="stylesheet" href="/res/assets/css/amazeui.min.css">
  <link rel="stylesheet" href="/res/assets/css/app.css">
  <script src="/res/assets/js/jquery.min.js"></script>
<script src="/res/assets/js/amazeui.min.js"></script>
  <style>
    .header {
      text-align: center;
    }
    .header h1 {
      font-size: 200%;
      color: #333;
      margin-top: 30px;
    }
    .header p {
      font-size: 14px;
    }
  </style>
</head>
<body>
<!-- Header -->
<header data-am-widget="header" class="am-header am-header-default">
  <h1 class="am-header-title">
    <a href="#title-link">寻欧管理端</a>
  </h1>
</header>
<!-- Menu -->
<nav data-am-widget="menu" class="am-menu  am-menu-offcanvas1" data-am-menu-offcanvas>
  <a href="javascript: void(0)" class="am-menu-toggle">
    <i class="am-menu-toggle-icon am-icon-bars"></i>
  </a>
  <div class="am-offcanvas">
    <div class="am-offcanvas-bar">
      <ul class="am-menu-nav sm-block-grid-1">
        <li class="am-parent">
          <a href="##">会员</a>
          <ul class="am-menu-sub am-collapse  sm-block-grid-2 ">
            <li class="am-menu-nav-channel">
              <a href="##" title="公司">进入栏目 &raquo;</a>
            </li>
          </ul>
        </li>
        <li class="am-parent">
          <a href="##">优惠券</a>
          <ul class="am-menu-sub am-collapse  sm-block-grid-3 ">
            <li class="">
              <a href="##">公司</a>
            </li>
          </ul>
        </li>
        <li class="am-parent">
          <a href="#c3">活动</a>
          <ul class="am-menu-sub am-collapse am-avg-sm-4">
            <li class="am-menu-nav-channel">
              <a href="#c3" title="趋势">泥煤 &raquo;</a>
            </li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>

<decorator:body />
 
  <!-- Footer -->
<!-- <footer data-am-widget="footer" class="am-footer am-footer-default">
  <div class="am-footer-switch">
    <span class="am-footer-ysp" data-rel="mobile" data-am-modal="{target: '#am-switch-mode'}">云适配版</span>
    <span class="am-footer-divider">|</span>
    <a id="godesktop" data-rel="desktop" class="am-footer-desktop"
       href="#">电脑版</a>
  </div>
  <div class="am-footer-miscs ">
    <p>由
      <a href="http://www.yunshipei.com/" title="诺亚方舟" target="_blank">诺亚方舟</a>提供技术支持</p>
    <p>云适配驱动</p>
    <p>CopyRight©2014 AllMobilize Inc.</p>
    <p>京ICP备13033158</p>
  </div>
</footer> 
<div id="am-footer-mode" class="am-modal am-modal-no-btn am-switch-mode-m am-switch-mode-m-default">
  <div class="am-modal-dialog">
    <div class="am-modal-hd am-modal-footer-hd">
      <a href="javascript:void(0)" data-dismiss="modal" class="am-close am-close-spin"
         data-am-modal-close>&times;</a>
    </div>
    <div class="am-modal-bd">您正在浏览的是
      <span class="am-switch-mode-owner">云适配</span>
      <span class="am-switch-mode-slogan">为您当前手机订制的移动网站。</span>
    </div>
  </div>
</div>
-->
<!-- Navbar -->
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default "
     id="">
  <ul class="am-navbar-nav am-cf am-avg-sm-4">
  	<li>
      <a href="###" onclick="sacnQr()">
        <span class="am-icon-qrcode"></span>
        <span class="am-navbar-label">扫一扫</span>
      </a>
    </li>
    
    <li>
      <a href="tel:123456789">
        <span class="am-icon-bar-chart"></span>
        <span class="am-navbar-label">报表</span>
      </a>
    </li>
    <li data-am-navbar-share>
      <a href="###">
        <span class="am-icon-users"></span>
        <span class="am-navbar-label">会员</span>
      </a>
    </li>
    
    <li>
      <a href="tel:123456789">
        <span class="am-icon-gift"></span>
        <span class="am-navbar-label">优惠券</span>
      </a>
    </li>
  </ul>
</div>


<script language="javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script language="javascript" >
wx.config({
    debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
    appId: '${appid}', // 必填，公众号的唯一标识
    timestamp: ${timestamp}, // 必填，生成签名的时间戳
    nonceStr: '${nonceStr}', // 必填，生成签名的随机串
    signature: '${signature}',// 必填，签名，见附录1
    jsApiList: [
       'checkJsApi',
       'onMenuShareTimeline',
       'onMenuShareAppMessage',
       'onMenuShareQQ',
       'onMenuShareWeibo',
       'hideMenuItems',
       'showMenuItems',
       'hideAllNonBaseMenuItem',
       'showAllNonBaseMenuItem',
       'translateVoice',
       'startRecord',
       'stopRecord',
       'onRecordEnd',
       'playVoice',
       'pauseVoice',
       'stopVoice',
       'uploadVoice',
       'downloadVoice',
       'chooseImage',
       'previewImage',
       'uploadImage',
       'downloadImage',
       'getNetworkType',
       'openLocation',
       'getLocation',
       'hideOptionMenu',
       'showOptionMenu',
       'closeWindow',
       'scanQRCode',
       'chooseWXPay',
       'openProductSpecificView',
       'addCard',
       'chooseCard',
       'openCard'
     ] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
});

wx.ready(function(){
	//alert('ok');
});

wx.error(function(res){
	alert("error:"+res);
});
function sacnQr(){
	wx.scanQRCode({
	    desc: 'scanQRCode desc',
	    needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
	    scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
	    success: function (res) {
		    var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
		    alert(result);
		}
	});
}
</script>
</body>
</html>
